package com.qf.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author AzureSky_X
 * @Date 2020/11/19 16:15
 * @Version 1.0
 */
public class Order {
    private Integer id;
    /**
     * 订单编号
     */
    private String orderNum;
    /**
     * 订单的生成时间
     */
    private Date orderTime;
    /**
     * 订单总额
     */
    private BigDecimal orderSum;
    /**
     * 0:未支付
     * 1:已支付,代发货
     * 2:已发货,待收货
     * 3:订单完成
     */
    private Integer orderStatus;
    /**
     * 地址id
     */
    private Integer aid;
    private Address address;
    /**
     * 用户id
     */
    private Integer uid;
    private List<OrderDetail> orderDetails;

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderNum='" + orderNum + '\'' +
                ", orderTime=" + orderTime +
                ", orderSum=" + orderSum +
                ", orderStatus=" + orderStatus +
                ", aid=" + aid +
                ", uid=" + uid +
                '}';
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public BigDecimal getOrderSum() {
        return orderSum;
    }

    public void setOrderSum(BigDecimal orderSum) {
        this.orderSum = orderSum;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Order() {
    }
}
